package com.sunshine.feign;

import feign.Feign;

/**
 * @author WeiHong
 * @date 2018/11/15
 */
public class HelloMain {

    public static void main(String[] args) {
        // 调用Hello接口
        IHelloClient hello = Feign.builder().target(IHelloClient.class, "http://localhost:8081/");
        System.out.println(hello.getClass().getName());
        System.out.println(hello.sayHello());
    }
}
